package eteam.aps.systeminterface.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 在线用户实体
 */
@Data
@TableName(value = "sp_onlineuser")
public class OnlineUserEntity implements Serializable {
    /**
     * 用户名
     */
    @TableField(exist = false)
    public String fusername;
    /**
     * 用户全名
     */
    @TableField(exist = false)
    public String ffullname;
    @TableId(value = "FToken", type = IdType.INPUT)
    private String ftoken;
    @TableField(value = "FTokenInfo")
    private String ftokeninfo;
    @TableField(value = "FUserId")
    private String fuserid;
    @TableField(value = "FIsDealer")
    private Integer fisdealer;
    @TableField(value = "FClientType")
    private String fclienttype;
    @TableField(value = "FClientIP")
    private String fclientip;
    @TableField(value = "FLoginTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date flogintime;
    @TableField(value = "FLastAccessTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date flastaccesstime;
    @TableField(value = "FClientVersion")
    private String fclientversion;
}
